package linyunshi.rbac.service;

import linyunshi.rbac.domain.dto.BaseDto;
import linyunshi.rbac.domain.entity.BaseEntity;
import linyunshi.rbac.domain.vo.Result;

/**
 * 业务层-通用业务接口
 *
 * @author linyunshi
 * @since 2025/6/8 19:27
 */
public interface IBaseService<Entity extends BaseEntity,Dto extends BaseDto> {

    boolean existsById (int id);

    Entity findById(int id);

    Result list();

    Result create (Dto dto);

    Result update (Dto dto,int id);
}
